package cn.itlaobing.util;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @Description:
 * @Author: WangDong
 * @Date: 2017/11/6 11:56
 */
public class DateUtil {

    private static final String PATTERN="yyyy-MM-dd HH:mm:ss";
    public static Date dateUtil(String date) throws ParseException {
        SimpleDateFormat sdf=new SimpleDateFormat(PATTERN);
        return sdf.parse(date);
    }
}
